/*
   Copyright (c) 2019 Shanghai Xuanzi Technology Co. Ltd https://xuanzi.ltd
   XZMindMap is licensed under the Mulan PSL v1.
   You can use this software according to the terms and conditions of the Mulan PSL v1.
   You may obtain a copy of Mulan PSL v1 at:
      http://license.coscl.org.cn/MulanPSL
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
   PURPOSE.
   See the Mulan PSL v1 for more details.

*/

package xuanzi.openmind.nodes;

import xuanzi.commons.graphics.PointF;

public class Handler extends Media{

	 public Handler() { 
		 setMiniHeight(24);
		 setMiniWidth(24);
	 }

	public void set(PointF point) { 
		setEmpty();
		offsetTo(point.x, point.y);
		inset(-3, -3);
	}
	
	public void set(PointF point,float x,float y) { 
		setEmpty();
		offsetTo(point.x+x, point.y+y);
		inset(-3, -3);
	}
}
